/**
 * createor: zc
 * email: zc8023zs@163.com
 * create_time: 2020/3/14 13:46:24
 */
import request from '@/utils/request'

export function fetchList() {
  return request({
    url: '/system/sysparams/getSysParamsList',
    method: 'post'
  })
}

export function createObj(data) {
  return request({
    url: '/system/sysparams/addSysParams',
    method: 'post',
    params:data
  })
}

export function updateObj(data) {
  return request({
    url: '/system/sysparams/updateSysParams',
    method: 'post',
    params:data
  })
}

export function deleteObj(data) {
  return request({
    url: '/system/sysparams/deleteSysParams',
    method: 'post',
    params:{id:data.id}
  })
}

export function selectList(data) {
  return request({
    url: '/system/sysparams/backgroundList',
    method: 'post',
    params:data
  })
}

export function uploadImage(data) {
  return request({
    url: '/system/system/uploadImage',
    method: 'post',
    data
  })
}
export function addBackground(data) {
  return request({
    url: '/system/sysparams/addBackground',
    method: 'post',
    params:data
  })
}
export function updateBackground(data) {
  return request({
    url: '/system/sysparams/updateBackground',
    method: 'post',
    params:data
  })
}